const mysql=require('mysql')
const db=mysql.createPool({
	host:'127.0.0.1',
	user:'root',
	port:'3306',
	password:'password',
	database:'db_test'
})
//问号占位符
// var sql='select 1'
var sql='insert into std values (1220190804,"中森明菜","女",100)'
db.query(sql,function(err,result){
	if(err) return console.log(err.message)
	console.log(result)
})